package com.lotusfall.bank.service;

import com.lotusfall.bank.exception.MoneyNotEnoughException;
import com.lotusfall.bank.exception.TransferException;

/**
 * 注意：业务类中的业务方法的名字在起名的时候要见名知意
 * 账户业务类
 * @author lotus
 * @version 1.0
 * @since 1.0
 */
public interface AccountService {

    /**
     * 账户转账业务
     * @param fromAct 转出账户
     * @param toAct 转入账户
     * @param money 转账金额
     */
   void transfer(String fromAct,String toAct,Double money) throws MoneyNotEnoughException, TransferException;

}
